using PBMessage;
using UnityEngine;
using System.Collections;

public class SC_CreateUnits_Handler :IPBHandler
{ 
    public void Exec(object packet) 
    {
        SC_CreateUnits PacketData = (SC_CreateUnits)packet;
        GameScene curScene = Game.Scene.Cur<GameScene>();
        for (int i = 0; i < PacketData.UnitNames.Count; i++)
        {
            curScene.CreateUnit(PacketData.UnitNames[i],PacketData.UUIDs[i],PacketData.PlayerId[i]);
        }
    }
}
